<% if not order_item.feed.code.completed? %>
<b>有最新进展吗?</b>
<div class='new_feeds'>
<% if order_item.order.can_be_edited_by_current_user? #是show页面，并且是当前用户编辑 %> 
  <div>      
    <%= link_to '厂家订做',
          new_order_made_order_url(order_item),
          :remote => true,
          :method => :get,
          :class => 'status_i no_loading order_made_i',
          :title => '向家俱生产厂家下订做单' %>
    <% if order_item.allowed_to_be_payed? %>
      <%= link_to '支付订做款',
            new_payment_order_url(order_item),
            :id => "link_payment_#{order_item.id}",
            :remote => true,
            :class => 'status_i no_loading has_been_payment_i result',
            :title => '向家俱生产厂家自付订做款后在此做记录' %>
    <% end %>
    <% if order_item.allowed_to_be_entered? %>
      <%= link_to '入库登记',
            new_enter_order_url(order_item),
            :id => "link_enter_#{order_item.id}",
            :remote => true,
            :class => 'status_i no_loading has_been_entered_i result',
            :title => '订做的家俱存放到仓库后在此做记录' %>
    <% end %>    
  </div>
  <div>
    <%= link_to '派工安装', 
          new_installation_order_url(order_item),
          :remote => true,
          :class => 'status_i no_loading installing_i',
          :title => '从仓库中调出家俱，并送到客户指定的地点安装' %>
    <%if order_item.allowed_to_be_installed?%>
    <%= link_to '完成', new_installed_order_url(order_item), 
          :id => "link_installed_#{order_item.id}",
          :remote => true,
          :class => 'status_i no_loading has_been_installed_i result',
          :title => '本次上门安装工作全部完成' %>
    <%= link_to '未完成',
          new_install_unfinished_order_url(order_item),
          :id => "link_install_unfinished_#{order_item.id}",
          :remote => true,
          :class => 'status_i no_loading partial_installed_i result',
          :title => '安装过程遇到一些问题，没有全部装完，也许是厂家的原因，也许是安装师傅的原因，或则是销售时候出了一些小问题，在此反映一下' %>
    <%end%>
  </div>   
  <div id="link_install_<%= order_item.id %>">
    <%= link_to '售后服务', 
          new_after_serviced_order_url(order_item),
          :remote => true,
          :class => 'status_i no_loading after_serviced_i',
          :title => '给客户装好的家俱有些小问题，还在保修期的，该修的修，该补的补'%>
    <%if order_item.allowed_to_be_after_serviced?%>
    <%= link_to '完成',
          new_after_service_finished_order_url(order_item),
          :id => "link_after_service_finished_#{order_item.id}",
          :remote => true,
          :class => 'status_i no_loading after_service_finished_i result',
          :title => '给客户做的售后服务完成了' %>
    <%= link_to '未完成', 
          new_after_service_unfinished_order_url(order_item),
          :id => "link_after_service_unfinished_#{order_item.id}",
          :remote => true, :class => 'status_i no_loading after_service_unfinished_i result',
          :title => '给客户做的售后服务没完成' %>
    <%end%>
  </div>
  <% if order_item.allowed_to_be_over? %>
  <div>
    <%= link_to '本项结束', new_completed_order_url(order_item), :remote => true, :class => 'status_i no_loading has_been_completed_i', :title => '本预订项所有的家俱已经全部交付给客户' %>
  </div>
  <%end%>
<%else%>
  赶快<%= link_to "记录",
          being_edited_order_url(order_item.order),
          :method => :put,
          :title => "前换到编辑状态后才可以进行记录哟" %>下来吧：）
<%end%>
</div>
<% end %>
